package edu.codink.xq.center.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Checkjob entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "CHECKJOB")
public class Checkjob implements java.io.Serializable
{

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private Integer ygbh;
	private Integer bmbh;
	private Timestamp uworktime;
	private Timestamp gworktime;
	private Timestamp yworktime;
	private Timestamp mworktime;
	private Double workovertime;
	private Double leavetime;
	private String description;

	// Constructors

	/** default constructor */
	public Checkjob()
	{
	}

	/** minimal constructor */
	public Checkjob(Integer id)
	{
		this.id = id;
	}

	/** full constructor */
	public Checkjob(Integer id, Integer ygbh, Integer bmbh,
			Timestamp uworktime, Timestamp gworktime, Timestamp yworktime,
			Timestamp mworktime, Double workovertime, Double leavetime,
			String description)
	{
		this.id = id;
		this.ygbh = ygbh;
		this.bmbh = bmbh;
		this.uworktime = uworktime;
		this.gworktime = gworktime;
		this.yworktime = yworktime;
		this.mworktime = mworktime;
		this.workovertime = workovertime;
		this.leavetime = leavetime;
		this.description = description;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId()
	{
		return this.id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	@Column(name = "YGBH")
	public Integer getYgbh()
	{
		return this.ygbh;
	}

	public void setYgbh(Integer ygbh)
	{
		this.ygbh = ygbh;
	}

	@Column(name = "BMBH")
	public Integer getBmbh()
	{
		return this.bmbh;
	}

	public void setBmbh(Integer bmbh)
	{
		this.bmbh = bmbh;
	}

	@Column(name = "UWORKTIME", length = 23)
	public Timestamp getUworktime()
	{
		return this.uworktime;
	}

	public void setUworktime(Timestamp uworktime)
	{
		this.uworktime = uworktime;
	}

	@Column(name = "GWORKTIME", length = 23)
	public Timestamp getGworktime()
	{
		return this.gworktime;
	}

	public void setGworktime(Timestamp gworktime)
	{
		this.gworktime = gworktime;
	}

	@Column(name = "YWORKTIME", length = 23)
	public Timestamp getYworktime()
	{
		return this.yworktime;
	}

	public void setYworktime(Timestamp yworktime)
	{
		this.yworktime = yworktime;
	}

	@Column(name = "MWORKTIME", length = 23)
	public Timestamp getMworktime()
	{
		return this.mworktime;
	}

	public void setMworktime(Timestamp mworktime)
	{
		this.mworktime = mworktime;
	}

	@Column(name = "WORKOVERTIME", precision = 15, scale = 0)
	public Double getWorkovertime()
	{
		return this.workovertime;
	}

	public void setWorkovertime(Double workovertime)
	{
		this.workovertime = workovertime;
	}

	@Column(name = "LEAVETIME", precision = 15, scale = 0)
	public Double getLeavetime()
	{
		return this.leavetime;
	}

	public void setLeavetime(Double leavetime)
	{
		this.leavetime = leavetime;
	}

	@Column(name = "DESCRIPTION", length = 500)
	public String getDescription()
	{
		return this.description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

}